package com.boc.ewr.risk.service.impl;

import com.boc.ewr.risk.entity.PendCaInvalid;
import com.boc.ewr.risk.mapper.PendCaInvalidMapper;
import com.boc.ewr.risk.service.IPendCaInvalidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description: 待处理无效账单清单
 * @Author: jeecg-boot
 * @Date:   2023-04-20
 * @Version: V1.0
 */
@Service
public class PendCaInvalidServiceImpl extends ServiceImpl<PendCaInvalidMapper, PendCaInvalid> implements IPendCaInvalidService {

    @Autowired
    PendCaInvalidMapper pendCaInvalidMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean createInfo() {
        return saveBatch(pendCaInvalidMapper.creatInfo());
    }
}
